package fiarredundant;

public class TreeNode extends Node {
    private TreeNode child;

    public TreeNode(Node parent, int value) {
        super(parent, value);
    }
    @Override
    public boolean isLeaf() {
        return child==null;
    }
    public void setChild(TreeNode n) {
        child = n;
    }

    public TreeNode getChild() {
        return child;
    }
}
